﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Contests.master" AutoEventWireup="false" CodeFile="AddContest.aspx.vb" Inherits="AddContest" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<fieldset>
<legend><h2>Contest</h2></legend>
<ul>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
        <li>
        <label for="Title">Title:</label>
        <asp:TextBox ID="txtTitle" runat="server" ToolTip="Give Contest a name"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txtTitle" ErrorMessage="Enter Contest Title"></asp:RequiredFieldValidator>
        </li>       

        <li><label for="Rules">Rules:</label>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="txtRules" ErrorMessage="Enter Contest Rules"></asp:RequiredFieldValidator>
        <asp:TextBox ID="txtRules" runat="server" TextMode="MultiLine" 
                ToolTip="Give Contest rules"></asp:TextBox>
        </li>
        </ul>
        </fieldset>
        
        <fieldset>
        <legend><h2>Contest Duration</h2></legend>
            
            <ul>
            <li>
            <label for="FromDate">From:</label>
            <asp:TextBox ID="txtFromDate" runat="server" ToolTip="Enter Contest Start date"></asp:TextBox>
                <asp:ImageButton ID="imgCal1" runat="server" ImageUrl="~/pix/cal.png" /><asp:CalendarExtender
                    ID="CalendarExtender1" runat="server" Format="dd/mm/YYYY" PopupButtonID="ImgCal1" PopupPosition="BottomRight" 
                    TargetControlID="txtFromDate">
                </asp:CalendarExtender>
                
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtFromDate" ErrorMessage="Contest must have start date"></asp:RequiredFieldValidator>
                
            </li>
            <li>
            <label for="ToDate">To:</label>
            <asp:TextBox ID="txtToDate" runat="server" ToolTip="Enter Contest End Date"></asp:TextBox>
                <asp:ImageButton ID="imgCal2" runat="server" ImageUrl="~/pix/cal.png" /><asp:CalendarExtender
                    ID="CalendarExtender2" runat="server" Format="dd/mm/yyyy" PopupButtonID="ImgCal2" PopupPosition="BottomRight" 
                    TargetControlID="txtToDate">
                </asp:CalendarExtender>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="txtToDate" ErrorMessage="Contest must have end date"></asp:RequiredFieldValidator>
            </li>
                <li>
            </li>
            </ul>

        </fieldset>
        <fieldset>
        <legend><h2>About Contest</h2></legend>
        <ul>
        <li>
            <asp:TextBox ID="txtDetails" runat="server" Height="72px" TextMode="MultiLine" 
                Width="394px" ToolTip="Enter Details about contest"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                ControlToValidate="txtDetails" ErrorMessage="Enter Details about contest"></asp:RequiredFieldValidator>
        </li>
        </ul>
        </fieldset>
        <ul>
        <li>
    <asp:Button ID="btnSubmit" runat="server" Text="Submit Contest" />
    </li>
    </ul>
</asp:Content>

